﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/CommonPages/MasterPageFontEnd.master" AutoEventWireup="true" CodeFile="Competition.aspx.cs" Inherits="Pages_HomePage_Competition" %>
<%@ Register TagPrefix="cp1" Assembly="CollectionPager" Namespace="SiteUtils" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="conten-left_detailCompetition">       
            <h4>Competition</h4>    
        <div class="backgroudContent">      
            <asp:DataList ID="dtListCompetition" runat="server" Width="100%" RepeatColumns="3" RepeatDirection="Horizontal" RepeatLayout="Flow">                                       
                <ItemTemplate>  
                <div class="competition">    
                    <asp:Image ID="img" ClientIDMode="Static" runat="server" ImageUrl='<%# "~/Images/Competition/" + Eval("compImage") %>' /> 
                    <div class="boxCompetition">
                        <asp:Label ID="lbldisplaydate" ClientIDMode="Static" runat="server" Text="Start date :"></asp:Label>
                        <asp:Label ID="lblDate" CssClass="date" ClientIDMode="Static" DataTextFormatString="{0:dd/MM/yyyy}" runat="server" Text= '<%# Eval("startDate")%>' ></asp:Label>
                        <br />
                        <asp:Label ID="lbldisplayenddate" ClientIDMode="Static" runat="server" Text="End date :"></asp:Label>
                        <asp:Label ID="lblEnddate" CssClass="name" ClientIDMode="Static" runat="server" ><%# Eval("endDate")%></asp:Label>
                        <asp:TextBox ID="txtDescription" runat="server" Enabled="false" CssClass="txtDescription" TextMode="MultiLine" ClientIDMode="Static" Text= '<%# Eval("description")%>' > </asp:TextBox>
                        <a href='<%# "DetailCompetion.aspx?CID=" + Eval("comId") %>'>
                            <asp:Label ID="Label1" ClientIDMode="Static" runat="server" Text='<%# Eval("name") %>'></asp:Label>                                                        
                        </a>	
                    </div>
                </div>
                </ItemTemplate>
            </asp:DataList>
             <cp1:CollectionPager runat="server" ID="collectionPager1" 
                ClientIDMode="Static" ControlCssClass="collectionPager" ResultsFormat=""  >
    
             </cp1:CollectionPager>                                                   
        </div>   
        <div class="clear"></div>             
    </div>
    <div class="content_right_detailCompetition">  
            <h4>Top Image</h4>            
               
                    <asp:DataList ID="dtListImg" runat="server" Width="100%" RepeatColumns="3" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <ItemTemplate>  
                        <div class="dtListImg_item">                           
                            <asp:Image ID="img" runat="server" ImageUrl='<%# "~/Images/Design/" + Eval("designImage") %>' />                            
			                <a href='<%# "detailDesign.aspx?PID=" + Eval("designId") %>'>
                                <p><%# Eval("name")%></p>		
                            </a>                   
                        </div>   	            
                        </ItemTemplate>
                    </asp:DataList>                                    
                    <cp1:CollectionPager runat="server" ID="collectionPager" 
                ClientIDMode="Static" ControlCssClass="collectionPager" ResultsFormat=""  >
    
                    </cp1:CollectionPager>
    </div>    


</asp:Content>

